import request from '@/utils/request'

// 查询投诉信息列表
export function listComplaint_info(query) {
  return request({
    url: '/system/complaint_info/list',
    method: 'get',
    params: query
  })
}

// 查询投诉信息详细
export function getComplaint_info(complaintId) {
  return request({
    url: '/system/complaint_info/' + complaintId,
    method: 'get'
  })
}

// 新增投诉信息
export function addComplaint_info(data) {
  return request({
    url: '/system/complaint_info',
    method: 'post',
    data: data
  })
}

// 修改投诉信息
export function updateComplaint_info(data) {
  return request({
    url: '/system/complaint_info',
    method: 'put',
    data: data
  })
}

// 删除投诉信息
export function delComplaint_info(complaintId) {
  return request({
    url: '/system/complaint_info/' + complaintId,
    method: 'delete'
  })
}
